﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace BasicModuleWebApiAuthorization.Controllers
{
    [Route("api/[controller]/action")]
    [ApiController]
    public class UserController : ControllerBase
    {
        public UserController() { }

        [Route("User")]
        [Authorize]
        [HttpGet]
        public void GetUser() 
        {
            var data = HttpContext.User.Claims;
        }
    }
}
